All Questions
5 questions
5votes
1answer
76views
Parsing Lists: BIO 2024 Q2
I was practising question 2a of the British Informatics Olympiad 2024 past paper. In this task you will manipulate lists of integers to create new lists. There are three fundamental lists that you ...
4votes
1answer
564views
HackerRank Attribute Parser
I wrote a program for solving the Attribute Parser challenge on HackerRank. The challenge is to read some specified number of lines of HTML-like markup (each line no more than 200 characters; for any ...
7votes
1answer
54views
Advent of Code 2017, Day 8 - Evaluate instructions to modify registers
This is my solution to Advent of Code 2017, Day 8. Problem description The task is to model a machine which has an unspecified number of registers which are accessed by name and contain integer ...
5votes
2answers
9kviews
Attribute Parser
This is a challenge question from hackerrank.com. We have defined our own markup language HRML. In HRML, each element consists of a starting and ending tag, and there are attributes associated ...
6votes
1answer
278views
"Best before" puzzle
I'm new To C++ and decided to have a go at the Spotify challenges on their website. I have now finished but I get the feeling my code is just terrible. I'm guessing it would be very hard for someone ...